package com.xh.bussiness.tiku.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xh.bussiness.tiku.model.QuestionChapterKnowledge;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 试题知识点表 Mapper 接口
 * </p>
 *
 * @author daiwei
 * @since 2019-02-23
 */
public interface QuestionChapterKnowledgeMapper extends BaseMapper<QuestionChapterKnowledge> {
	/**
	 * 根据试题id删除
	 * @param questionId
	 */
	void deleteByQuestionId(String questionId);

	List<Integer> queryQuestionChapterCount(List<String> questionIds);

	void batchInsert(@Param("list") List<QuestionChapterKnowledge> list);

}
